<?php

namespace Marketing\Form;

use Zend\Form\Form;
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class MarketinglistForm extends Form {
	public function __construct($name = NULL) {
		parent:: __construct('marketinglist');
		
		$this->setAttribute('method', 'post');
		
		$this->add(array(
			'name'=>'id',
			'type'=> 'Hidden',
		));
		
		$this->add(array(
				'name'=>'name',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
				'name'=>'description',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
				'name'=>'fromname',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
				'name'=>'fromaddress',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
				'name'=>'anyonecansubscribe',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
				'name'=>'ownedsecurableitem_id',
				'attributes' => array(
						'type'  => 'text',
						//'placeholder' => 'Type product name...',
						'required' => 'required',
				),
		));
		
		$this->add(array(
            'name' => 'submit',
            'attributes' => array(
                'type'  => 'submit',
                'value' => 'Go',
                'id' => 'submitbutton',
            ),
        ));
		
	}
}
